#!/usr/bin/perl

$command1='sudo /etc/init.d/sshd stop';
system($command1);

sleep 10;

$command2='sudo /etc/init.d/sshd start';
system($command2);

